#define _CRT_SECURE_NO_WARNINGS 1 
#include <iostream>
#include <string>
#include <queue>
#include <vector>
#include <stack>
using namespace std;

class Solution {
public:
	vector<int> twoSum(vector<int>& nums, int target) {
		vector<int> result;
		for (int i = 0; i < nums.size(); i++)
		{
			for (int j = i; j < nums.size(); j++)
			{
				if (nums[i] + nums[j] == target)
				{
					result.push_back(i);
					result.push_back(j);
					return result;
				}
			}
		}
		return result;
	}
};

int fib(int n) {
	vector<int> dp(n,0);
	dp[0] = 0;
	dp[1] = 1;
	for (int i = 2; i <= n; i++)
	{
		dp[i] = dp[i - 1] + dp[i - 2];
	}
	return dp[n];
}


int main()
{
	cout <<fib(2) <<endl;

	cin.get();
	return 0;
}

